package com.starlz.jpa.controller;

import com.starlz.jpa.entity.EmDe;
import com.starlz.jpa.entity.Emp;
import com.starlz.jpa.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:
 * @Author: wangzi
 * @Date: 2018/10/16 14:14
 */
@RestController
public class TestController {

    @Autowired
    EmpService empService;

    @RequestMapping("findAll")
    public List<Emp> findAll(){

        List<Emp> list = empService.findAll();
        return list;
    }



}
